home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / Intelligent classes 1.0 / CIntelligentWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-02-02  |  940 b   |  41 lines  |  [TEXT/KAHL]

  1. /****
  2.  * CIntelligentWindow.h
  3.  *
  4.  *    This class makes the Window a little more intelligent.
  5.  *
  6.  *    Copyright © 1993 Quipus, by Mårten Sörliden.  All rights reserved.
  7.  *
  8.  ****/
  9.  
  10. #define _H_CIntelligentWindow            /* Include this file only once */
  11.  
  12. #include <CWindow.h>
  13.  
  14. class CDesktop;
  15. class CDirector;
  16.  
  17.  
  18. struct CIntelligentWindow : CWindow {
  19.  
  20.     short           wNum;
  21.     Boolean        stdStateChanged;
  22.     short        lastDirection;
  23.  
  24. /** Construction and destruction methods **/
  25.     void        IIntelligentWindow(short WINDid, Boolean aFloating, CDesktop *anEnclosure, CDirector *aSupervisor);
  26.     void        Dispose(void);
  27.  
  28. /** Accessing methods **/
  29.     void        SetTitle(Str255 theTitle);
  30.     void        SetDefaultTitle(void);
  31.     short    GetWNum(void);
  32.     void        SetStdState(Rect *aStdState);
  33.  
  34. /** Size and location methods **/
  35.     void        Drag(EventRecord *macEvent);
  36.     void        Resize(EventRecord *macEvent);
  37.     void        Zoom(short direction);
  38.     void        UpdateStdState(void);
  39.     void        UpdateUserState(void);
  40. };
  41.